package com.qf.lanzhou.shop.admin.service.impl;

import com.qf.lanzhou.shop.admin.dao.OrderMapper;
import com.qf.lanzhou.shop.admin.service.OrderService;
import com.qf.lanzhou.shop.pojo.entity.ParentsOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Nerly
 * @Date 2021/1/13 14:44
 * @JDK 1.8
 * @Version 1.0
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<ParentsOrder> selectByPay() {
        List<ParentsOrder> parentsOrders = orderMapper.selectByPay();
        return parentsOrders;
    }

    @Override
    public int updateStatusToSend(ParentsOrder parentsOrder) {
        int result = orderMapper.updateStatusToSend(parentsOrder);
        return result;
    }
}
